verdi> ls
a.out			genList2tst.C~		pile2.C
complex.C		genList3tst.C		pile2.C~
complex.C~		genList3tst.C~		shapes.C~
esempio.C		genList4.h		shapes_no_virt.C
genList.C		genList4tst.C		shapes_no_virt.C~
genList.C~		genList4tst.C~		shapes_virt.C
genList.h		genListst.C~		shapes_virt.C~
genList.h~		genListst2.C~		stack.h
genList1tst.C		genListst3.C~		stack.h~
genList1tst.C~		pile1.C			stacktst.C
genList2tst.C		pile1.C~		stacktst.C~
verdi> g++ pile2.C
verdi> a.out
inizio blocco
inizializzazione della pila di interi.
inizializzazione della pila di caratteri.
scrivi un intero: 3
scrivi un intero: 3
scrivi un carattere: a
scrivi un carattere: b
contenuto della pila di interi: 
3
3
contenuto della pila di caratteri: 
b
a
deallocazione della pila di caratteri. 
deallocazione della pila di interi. 
verdi> g++ pile1.C
pile1.C: In method `int pila_int::empty()':
pile1.C:66: parse error before `}'
verdi> g++ pile1.C
verdi> g++ pile1.C
verdi> a.out
inizio primo blocco
inizializzazione della pila di interi.
contenuto della prima pila : 
2
1
deallocazione della pila di interi. 
inizio secondo blocco
inizializzazione della pila di interi.
contenuto della seconda pila : 
4
3
deallocazione della pila di interi. 
verdi> a2ps pile1.C
[pile1.C: 2 pages on 1 sheet]
[Total: 2 pages on 1 sheet]
verdi> a2ps -p pile1.C
[pile1.C: 2 pages on 2 sheets]
[Total: 2 pages on 2 sheets]
verdi> a2ps -p pile1.C
[pile1.C: 1 page on 1 sheet]
[Total: 1 page on 1 sheet]
verdi> g++ pile2.C
verdi> a.out
contenuto della pila di interi : 
2
1
contenuto della pila di caratteri : 
b
a
verdi> g++ pile2.C
verdi> a2ps -p pile2.C
[pile2.C: 1 page on 1 sheet]
[Total: 1 page on 1 sheet]
verdi> ls
a.out			genList2tst.C~		pile2.C
complex.C		genList3tst.C		pile2.C~
complex.C~		genList3tst.C~		shapes.C~
esempio.C		genList4.h		shapes_no_virt.C
genList.C		genList4tst.C		shapes_no_virt.C~
genList.C~		genList4tst.C~		shapes_virt.C
genList.h		genListst.C~		shapes_virt.C~
genList.h~		genListst2.C~		stack.h
genList1tst.C		genListst3.C~		stack.h~
genList1tst.C~		pile1.C			stacktst.C
genList2tst.C		pile1.C~		stacktst.C~
verdi> g++ esempio.C
esempio.C: In function `void leggi(int &)':
esempio.C:22: no match for `operator <<(class istream, int)'
esempio.C: In function `int main()':
esempio.C:30: `i' undeclared (first use this function)
esempio.C:30: (Each undeclared identifier is reported only once
esempio.C:30: for each function it appears in.)
esempio.C:31: warning: implicit declaration of function `int stampa(...)'
verdi> g++ esempio.C
esempio.C: In function `void leggi(int &)':
esempio.C:22: no match for `operator <<(class istream, int)'
esempio.C: In function `int main()':
esempio.C:33: call of overloaded `stampa' is ambiguous
esempio.C:16: candidates are: stampa(float)
esempio.C:14:                 stampa(int)
verdi> g++ esempio.C
verdi> a.out
 scrivi due numeri reali  : 2.5 7.4
il massimo e': 7.4 
3
questo e' un intero3
4.8
questo e' un float4.8
questa e' una stringaprimo programma in c++
scrivi: chiamata senza parametri.
verdi> a.out
 scrivi due numeri reali  : 
1
2
il massimo e': 2 
1
questo e' un intero1
1
questo e' un float1
questa e' una stringaprimo programma in c++
scrivi: chiamata senza parametri.
verdi> a.out
 scrivi due numeri reali  : 1
2
il massimo e': 2 
2.3
questo e' un intero2
questo e' un float0.3
questa e' una stringaprimo programma in c++
scrivi: chiamata senza parametri.
verdi> g++ esempio.C
verdi> a.out
scrivi due numeri reali  : 3.7 9.4
il massimo e': 9.4 
scrivi un intero: 23
stampa - questo e' un intero: 23
scrivi un reale: 55.78
stampa - questo e' un float: 55.78
stampa - questa e' una stringa: primo programma in c++
stampa - chiamata senza parametri.
verdi> a2ps -p esempio.C
[esempio.C: 1 page on 1 sheet]
[Total: 1 page on 1 sheet] // passaggio parametri per riferimento
//: Permission denied.
verdi> g++ stack.C
gcc: stack.C: No such file or directory
verdi> ls
#pattume#		genList2tst.C~		pile2.C
a.out			genList3tst.C		pile2.C~
complex.C		genList3tst.C~		shapes.C~
complex.C~		genList4.h		shapes_no_virt.C
esempio.C		genList4tst.C		shapes_no_virt.C~
esempio.C~		genList4tst.C~		shapes_virt.C
genList.C		genListst.C~		shapes_virt.C~
genList.C~		genListst2.C~		stack.h
genList.h		genListst3.C~		stack.h~
genList.h~		pattume			stacktst.Cg
genList1tst.C		pattume~		stacktst.C~
genList1tst.C~		pile1.C
genList2tst.C		pile1.C~
verdi> g++ stacktst.C
stack.h: In method `void stack::empty()':
In file included from stacktst.C:4:
stack.h:25: warning: `return' with a value, in function returning void
verdi> stacktst.C
stacktst.C: Permission denied.
verdi> g++ stacktst.C
verdi> a.out

 enter your name: bianchi

 your name backward is ihcnaib
verdi> g++ stacktst.C
verdi> a.out

 enter your name: Dario_Bianchi

 your name backward is ihcnaiB_oiraD
verdi> a2ps -p stack.h stacktst.C
[stack.h: 1 page on 1 sheet]
[stacktst.C: 1 page on 1 sheet]
[Total: 2 pages on 2 sheets]
verdi> g++ friendly.C
friendly.C: In method `void watch::tick()':
friendly.C:17: parse error before `}'
friendly.C: In function `void synchronize(class watch &, class microwave_oven &)':
friendly.C:41: member `time' is a private member of class `microwave_oven'
friendly.C: In function `int main(...)':
friendly.C:46: warning: reference, not call, to function `watch::tick()'
friendly.C:46: warning: at this point in file
friendly.C:47: warning: reference, not call, to function `microwave_oven::tick()'
friendly.C:47: warning: at this point in file
verdi> g++ friendly.C
friendly.C: In function `void synchronize(class watch &, class microwave_oven &)':
friendly.C:41: member `time' is a private member of class `microwave_oven'
friendly.C: In function `int main(...)':
friendly.C:46: warning: reference, not call, to function `watch::tick()'
friendly.C:46: warning: at this point in file
friendly.C:47: warning: reference, not call, to function `microwave_oven::tick()'
friendly.C:47: warning: at this point in file
verdi> g++ friendly.C
friendly.C: In function `int main(...)':
friendly.C:46: warning: reference, not call, to function `watch::tick()'
friendly.C:46: warning: at this point in file
friendly.C:47: warning: reference, not call, to function `microwave_oven::tick()'
friendly.C:47: warning: at this point in file
verdi> g++ friendly.C
verdi> a.out
verdi> a2ps -p friendly.C
[friendly.C: 1 page on 1 sheet]
[Total: 1 page on 1 sheet]
verdi> 